// out: false,main:../war_map_classic.less,main:../war_map_technology.less
@import "switchMap";
html,
body {
    height: 100%;
    margin: 0px;
    padding: 0;
}

.flex {
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: -webkit-flex;
    display: flex;
    flex-direction: row;
    -webkit-flex-direction: row;
}

.item {
    flex: auto;
}

.flex-item {
    flex: auto;
}

.overflow {
    overflow: auto;
}

.main {
    height: 100%;
}
.war-main {
    height: 100%;
    position: relative;
}

.map-panel {
    width: 100%;
    height: 100%;
}

.left-panel {
    width: 300px;

    .tree-box {
        height: 50%;
    }

    .main-box {
        border: 1px solid #f00;
        height: 50%;
    }
    .icon-box {
        @iconSize: 60px;
        ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            padding: 10px;
            li {
                list-style: none;
                width: 31%;
                box-sizing: border-box;
                display: flex;
                flex-direction: column;
                border: 1px solid #ccc;
                justify-content: space-between;
                margin: 0 0 5px 0;
                border-radius: 3px;
                &:hover {
                    border: 1px solid #333;
                }
                a {
                    display: flex;
                    flex-direction: column;
                    flex: auto;
                    .icon {
                        display: flex;
                        flex-grow: 1;
                        justify-content: center;
                        align-items: center;
                    }
                    p {
                        text-align: center;
                    }
                    img {
                        // width:@iconSize;
                        max-height: @iconSize;
                    }
                }
            }
        }
    }
}
.btn-box {
    & > div {
        padding: 0 5px 5px 5px;
    }
}
.text-marker {
    font-weight: bold;
    font-size: 16px;
    color: #f00;
    width: 100px !important;
    text-shadow: #fff 2px 0 0, #fff 0 2px 0, #fff -2px 0 0, #fff 0 -2px 0;
}
.left-panel {
    width: 300px;

    .tree-box {
        height: 50%;
    }

    .main-box {
        border: 1px solid #f00;
        height: 50%;
    }
    .icon-box {
        @iconSize: 60px;
        ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            padding: 10px;
            li {
                list-style: none;
                width: 31%;
                box-sizing: border-box;
                display: flex;
                flex-direction: column;
                border: 1px solid #ccc;
                justify-content: space-between;
                margin: 0 0 5px 0;
                border-radius: 3px;
                &:hover {
                    border: 1px solid #333;
                }
                a {
                    display: flex;
                    flex-direction: column;
                    flex: auto;
                    .icon {
                        display: flex;
                        flex-grow: 1;
                        justify-content: center;
                        align-items: center;
                    }
                    p {
                        text-align: center;
                    }
                    img {
                        // width:@iconSize;
                        max-height: @iconSize;
                    }
                }
            }
        }
    }
}
.layui-tab {
    height: 100%;
    display: flex;
    flex-direction: column;
    & > .layui-tab-content {
        flex: auto;
        display: flex;
        flex-direction: column;
        & > .layui-tab-item {
            height: 100%;
            //         display: flex;
            // flex-direction: column;
        }
    }
}
.importDark (@a)when (@a="dark") {
    .left-panel {
        .icon-box {
            ul {
                li {
                    border: 1px solid @main-color;
                    padding: 5px 0;
                    background: @main-color;
                    a {
                        p {
                            color: #fff;
                        }
                    }
                    &:hover {
                        background: darken(@main-color, 10%);
                    }
                }
            }
        }
    }
}
.importDark (@skinName);
